package com.cyq.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyq.blog.mapper.ListCommentVoMapper;
import com.cyq.blog.service.ListCommentVoService;
import com.cyq.blog.vo.ListCommentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ListCommentServiceImpl class
 *
 * @author chenyeqing
 * @date 2021/5/20
 */
@Service
public class ListCommentVoVoServiceImpl extends ServiceImpl<ListCommentVoMapper, ListCommentVo> implements ListCommentVoService {

    @Autowired
    ListCommentVoMapper listCommentVoMapper;

    @Override
    public IPage<ListCommentVo> listCommentTitle(Page<ListCommentVo> page, @Param(Constants.WRAPPER) Wrapper<ListCommentVo> wrapper) {
        return listCommentVoMapper.listCommentTitle(page, wrapper);
    }
}
